﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class ProxyEmit
    {
        public static NamedArgument[] Invoke(Model1 obj)
        {
            //var count = obj.GetType().GetProperties().Length;

            NamedArgument[] args = new NamedArgument[1];

            args[0] = new NamedArgument(null, null, obj.Sales);
            args[1] = new NamedArgument(null, null, obj.Publication);

            return args;
        }
    }
}
